package com.design.designmode.action.mediator;

/**
 * @author hxl
 * @since 2023-04-18
 */
public class ColleagueA extends Colleague {
    public ColleagueA(Mediator mediator) {
        this.mediator = mediator;
    }

    public void sendMessage(String message) {
        mediator.sendMessage(message, this);
    }

    public void receive(String message) {
        System.out.println("同事A收到消息：" + message);
    }


}
